package com.cn.shiro_demo.service;


import com.cn.shiro_demo.model.Role;
import com.cn.shiro_demo.model.User;

import java.util.List;

public interface UserService {

    User findByUsername(String username);

    List<Role> findRolesByUserId(Long userId);

    List<String> findPermissionsByRoleId(Long roleId);

    Boolean login(String username, String password);
}